//这里是用户购买前台的接口
import httpbase from "@/util/http.js";
//登录请求
export const loginUser = (username,password) => {
  return httpbase({
    url: '/user/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}
//注册请求
export const registeUser = (username,password,nickname,avatarUrl) => {
  return httpbase({
    url: '/user/',
    method: 'post',
    data: {
      username,
      password,
      nickname,
      avatarUrl
    }
  })
}
